# -*-Mode: tcl -*-
# ============================================================
# TMakefile for ifgi
# Copyright (C) 2010-2012 Yamauchi Hitoshi
# Sunday Researcher
# ============================================================
module { cxx gtest }
module { run_unittest }

# lappend EXCLUDE test_Dict.cpp

# It seems not necessary to make static library
# set link::MAKE_SHLIB 0
# set link::MAKE_LIB   1
# set link::LINK_MODE "static"

lappend EXCLUDE SamplerUnitHemisphereUniform.cpp
lappend EXCLUDE SamplerStratifiedRegular.cpp

# for OpenMP
lappend cxx::FLAGS "-fopenmp"
lappend link::FLAGS "-fopenmp"

#
# additional clean entry
#
target core_bk_clean ALWAYS_BUILD {
    set deletebakupfile [glob -nocomplain *~]
    append deletebakupfile " core a.out TAGS"
    append deletebakupfile " unit_disk_uniform_sampler_res.ppm"
    puts -nonewline "file delete -- "
    foreach f ${deletebakupfile} {
        file delete -force -- ${f}
        puts -nonewline "${f} "
    }
    puts ""
}
depend clean core_bk_clean
